package com.ruoyi.ora.factory;

import com.ruoyi.common.enums.dict.AiPlatform;
import com.ruoyi.ora.service.IVoiceTranslatService;
import com.ruoyi.ora.service.impl.VoiceTranslatWhisperServiceImpl;
import com.ruoyi.ora.service.impl.VoiceTranslatXfyunServiceImpl;

public class VoiceTranslatFactory {

    public static IVoiceTranslatService build(int aiPlatform){

        if (aiPlatform == AiPlatform.CHART_GPT.getValue()){
            return null;
        }else if (aiPlatform == AiPlatform.WHISPER.getValue()){
            return new VoiceTranslatWhisperServiceImpl();
        }else if (aiPlatform == AiPlatform.XFYUN.getValue()){
            return new VoiceTranslatXfyunServiceImpl();
        }else {
            return null;
        }
    }

}
